{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Importing PulP solver\n",
    "from pulp import *"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Demand points\n",
    "demand_points=['Port of Salalah', 'Port of Gaza','Port of Jebel Ali']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Port of Salalah', 'Port of Gaza', 'Port of Jebel Ali']"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "demand_points"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Supply Points\n",
    "supply_points=['Port of Buenos Aires','Port of Antwerp','Port of Santos','Port of Montreal','Port of Vancouver','Port of Shanghai','Buenaventura','Port of Alexandria','Port of Marseille','Port of Hamburg_Germany','Port of Jawaharlal Nehru','Port of Gioia Tauro','Port of Nagoya','Port of Busan','Port of Shuwaikh','Penang Port','Port of Manzanillo','Port of Rotterdam','Port of Lagos','Port of Salalah','Port of Gdansk','Port of Doha','Port of King Abdul Aziz','Port of Jeddah','Port of Singapore','Port of Durban','Port of Algeciras','Port of Bangkok','Port of Jebel Ali','Port of Immingham','Port of New York','Port of Los Angeles','Port of Saigon']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Port of Buenos Aires',\n",
       " 'Port of Antwerp',\n",
       " 'Port of Santos',\n",
       " 'Port of Montreal',\n",
       " 'Port of Vancouver',\n",
       " 'Port of Shanghai',\n",
       " 'Buenaventura',\n",
       " 'Port of Alexandria',\n",
       " 'Port of Marseille',\n",
       " 'Port of Hamburg_Germany',\n",
       " 'Port of Jawaharlal Nehru',\n",
       " 'Port of Gioia Tauro',\n",
       " 'Port of Nagoya',\n",
       " 'Port of Busan',\n",
       " 'Port of Shuwaikh',\n",
       " 'Penang Port',\n",
       " 'Port of Manzanillo',\n",
       " 'Port of Rotterdam',\n",
       " 'Port of Lagos',\n",
       " 'Port of Salalah',\n",
       " 'Port of Gdansk',\n",
       " 'Port of Doha',\n",
       " 'Port of King Abdul Aziz',\n",
       " 'Port of Jeddah',\n",
       " 'Port of Singapore',\n",
       " 'Port of Durban',\n",
       " 'Port of Algeciras',\n",
       " 'Port of Bangkok',\n",
       " 'Port of Jebel Ali',\n",
       " 'Port of Immingham',\n",
       " 'Port of New York',\n",
       " 'Port of Los Angeles',\n",
       " 'Port of Saigon']"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "supply_points"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the distances\n",
    "distance = dict(zip(supply_points,[dict(zip(demand_points, [8169,7282,9168])),\n",
    "dict(zip(demand_points, [5939,3327.94,6938])),\n",
    "dict(zip(demand_points, [8408,6360,9407])),\n",
    "dict(zip(demand_points, [8471,5165,9470])),\n",
    "dict(zip(demand_points, [10461,10365,10440])),\n",
    "dict(zip(demand_points, [6270,7660,6627])),\n",
    "dict(zip(demand_points, [10308,6743,11307])),\n",
    "dict(zip(demand_points, [2397,242,3396])),\n",
    "dict(zip(demand_points, [4081,1631,5080])),\n",
    "dict(zip(demand_points, [6307,3595.7,7306])),\n",
    "dict(zip(demand_points, [1143,3243,1335])),\n",
    "dict(zip(demand_points, [3367,1336,4366])),\n",
    "dict(zip(demand_points, [7148,8308,7505])),\n",
    "dict(zip(demand_points, [6786,8020,7143])),\n",
    "dict(zip(demand_points, [1480,3363,562])),\n",
    "dict(zip(demand_points, [3245,5210,3601])),\n",
    "dict(zip(demand_points, [11791,8088,12790])),\n",
    "dict(zip(demand_points, [6030,3335,7029])),\n",
    "dict(zip(demand_points, [7317,5500,8316])),\n",
    "dict(zip(demand_points, [0,2086,999])),\n",
    "dict(zip(demand_points, [7025,4119,8025])),\n",
    "dict(zip(demand_points, [1186,3139,187])),\n",
    "dict(zip(demand_points, [1307,3203,389])),\n",
    "dict(zip(demand_points, [1372,828,2371])),\n",
    "dict(zip(demand_points, [3614,5531,3971])),\n",
    "dict(zip(demand_points, [3571,7346,4572])),\n",
    "dict(zip(demand_points, [4378,2004,5377])),\n",
    "dict(zip(demand_points, [4490,6341,4847])),\n",
    "dict(zip(demand_points, [999,2975,0])),\n",
    "dict(zip(demand_points, [6081,3399,7080])),\n",
    "dict(zip(demand_points, [7930,5196,8918])),\n",
    "dict(zip(demand_points, [11137,9280,11116])),\n",
    "dict(zip(demand_points, [4353,6368,4709]))]))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Buenos Aires': {'Port of Salalah': 8169,\n",
       "  'Port of Gaza': 7282,\n",
       "  'Port of Jebel Ali': 9168},\n",
       " 'Port of Antwerp': {'Port of Salalah': 5939,\n",
       "  'Port of Gaza': 3327.94,\n",
       "  'Port of Jebel Ali': 6938},\n",
       " 'Port of Santos': {'Port of Salalah': 8408,\n",
       "  'Port of Gaza': 6360,\n",
       "  'Port of Jebel Ali': 9407},\n",
       " 'Port of Montreal': {'Port of Salalah': 8471,\n",
       "  'Port of Gaza': 5165,\n",
       "  'Port of Jebel Ali': 9470},\n",
       " 'Port of Vancouver': {'Port of Salalah': 10461,\n",
       "  'Port of Gaza': 10365,\n",
       "  'Port of Jebel Ali': 10440},\n",
       " 'Port of Shanghai': {'Port of Salalah': 6270,\n",
       "  'Port of Gaza': 7660,\n",
       "  'Port of Jebel Ali': 6627},\n",
       " 'Buenaventura': {'Port of Salalah': 10308,\n",
       "  'Port of Gaza': 6743,\n",
       "  'Port of Jebel Ali': 11307},\n",
       " 'Port of Alexandria': {'Port of Salalah': 2397,\n",
       "  'Port of Gaza': 242,\n",
       "  'Port of Jebel Ali': 3396},\n",
       " 'Port of Marseille': {'Port of Salalah': 4081,\n",
       "  'Port of Gaza': 1631,\n",
       "  'Port of Jebel Ali': 5080},\n",
       " 'Port of Hamburg_Germany': {'Port of Salalah': 6307,\n",
       "  'Port of Gaza': 3595.7,\n",
       "  'Port of Jebel Ali': 7306},\n",
       " 'Port of Jawaharlal Nehru': {'Port of Salalah': 1143,\n",
       "  'Port of Gaza': 3243,\n",
       "  'Port of Jebel Ali': 1335},\n",
       " 'Port of Gioia Tauro': {'Port of Salalah': 3367,\n",
       "  'Port of Gaza': 1336,\n",
       "  'Port of Jebel Ali': 4366},\n",
       " 'Port of Nagoya': {'Port of Salalah': 7148,\n",
       "  'Port of Gaza': 8308,\n",
       "  'Port of Jebel Ali': 7505},\n",
       " 'Port of Busan': {'Port of Salalah': 6786,\n",
       "  'Port of Gaza': 8020,\n",
       "  'Port of Jebel Ali': 7143},\n",
       " 'Port of Shuwaikh': {'Port of Salalah': 1480,\n",
       "  'Port of Gaza': 3363,\n",
       "  'Port of Jebel Ali': 562},\n",
       " 'Penang Port': {'Port of Salalah': 3245,\n",
       "  'Port of Gaza': 5210,\n",
       "  'Port of Jebel Ali': 3601},\n",
       " 'Port of Manzanillo': {'Port of Salalah': 11791,\n",
       "  'Port of Gaza': 8088,\n",
       "  'Port of Jebel Ali': 12790},\n",
       " 'Port of Rotterdam': {'Port of Salalah': 6030,\n",
       "  'Port of Gaza': 3335,\n",
       "  'Port of Jebel Ali': 7029},\n",
       " 'Port of Lagos': {'Port of Salalah': 7317,\n",
       "  'Port of Gaza': 5500,\n",
       "  'Port of Jebel Ali': 8316},\n",
       " 'Port of Salalah': {'Port of Salalah': 0,\n",
       "  'Port of Gaza': 2086,\n",
       "  'Port of Jebel Ali': 999},\n",
       " 'Port of Gdansk': {'Port of Salalah': 7025,\n",
       "  'Port of Gaza': 4119,\n",
       "  'Port of Jebel Ali': 8025},\n",
       " 'Port of Doha': {'Port of Salalah': 1186,\n",
       "  'Port of Gaza': 3139,\n",
       "  'Port of Jebel Ali': 187},\n",
       " 'Port of King Abdul Aziz': {'Port of Salalah': 1307,\n",
       "  'Port of Gaza': 3203,\n",
       "  'Port of Jebel Ali': 389},\n",
       " 'Port of Jeddah': {'Port of Salalah': 1372,\n",
       "  'Port of Gaza': 828,\n",
       "  'Port of Jebel Ali': 2371},\n",
       " 'Port of Singapore': {'Port of Salalah': 3614,\n",
       "  'Port of Gaza': 5531,\n",
       "  'Port of Jebel Ali': 3971},\n",
       " 'Port of Durban': {'Port of Salalah': 3571,\n",
       "  'Port of Gaza': 7346,\n",
       "  'Port of Jebel Ali': 4572},\n",
       " 'Port of Algeciras': {'Port of Salalah': 4378,\n",
       "  'Port of Gaza': 2004,\n",
       "  'Port of Jebel Ali': 5377},\n",
       " 'Port of Bangkok': {'Port of Salalah': 4490,\n",
       "  'Port of Gaza': 6341,\n",
       "  'Port of Jebel Ali': 4847},\n",
       " 'Port of Jebel Ali': {'Port of Salalah': 999,\n",
       "  'Port of Gaza': 2975,\n",
       "  'Port of Jebel Ali': 0},\n",
       " 'Port of Immingham': {'Port of Salalah': 6081,\n",
       "  'Port of Gaza': 3399,\n",
       "  'Port of Jebel Ali': 7080},\n",
       " 'Port of New York': {'Port of Salalah': 7930,\n",
       "  'Port of Gaza': 5196,\n",
       "  'Port of Jebel Ali': 8918},\n",
       " 'Port of Los Angeles': {'Port of Salalah': 11137,\n",
       "  'Port of Gaza': 9280,\n",
       "  'Port of Jebel Ali': 11116},\n",
       " 'Port of Saigon': {'Port of Salalah': 4353,\n",
       "  'Port of Gaza': 6368,\n",
       "  'Port of Jebel Ali': 4709}}"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "distance"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Plastic Demand\n",
    "plastic_demand=dict(zip(demand_points, [172514595.4,158334914.1,183385353]))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Salalah': 172514595.4,\n",
       " 'Port of Gaza': 158334914.1,\n",
       " 'Port of Jebel Ali': 183385353}"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "plastic_demand"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Plastic Supply\n",
    "plastic_supply=dict(zip(supply_points, [3484953.6435,3021067.5020,7945692.0017,1637839.3004,7771532.4984,234997919.6606,2509165.8953,731840.0219,6474235.9733,16669297.2185,10078880.5696,9565903.5174,13163659.9622,44795024.7538,887965.8933,12318631.8073,6272914.5326,2745849.6660,243946.6740,665974.4200,4350000.5481,1775931.7866,9520988.2609,5352440.4517,20157761.1392,1219733.3699,5144723.8347,19037885.5204,3995846.5198,5051019.5284,27723150.5426,19323708.4517,5599378.0942])) "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Buenos Aires': 3484953.6435,\n",
       " 'Port of Antwerp': 3021067.502,\n",
       " 'Port of Santos': 7945692.0017,\n",
       " 'Port of Montreal': 1637839.3004,\n",
       " 'Port of Vancouver': 7771532.4984,\n",
       " 'Port of Shanghai': 234997919.6606,\n",
       " 'Buenaventura': 2509165.8953,\n",
       " 'Port of Alexandria': 731840.0219,\n",
       " 'Port of Marseille': 6474235.9733,\n",
       " 'Port of Hamburg_Germany': 16669297.2185,\n",
       " 'Port of Jawaharlal Nehru': 10078880.5696,\n",
       " 'Port of Gioia Tauro': 9565903.5174,\n",
       " 'Port of Nagoya': 13163659.9622,\n",
       " 'Port of Busan': 44795024.7538,\n",
       " 'Port of Shuwaikh': 887965.8933,\n",
       " 'Penang Port': 12318631.8073,\n",
       " 'Port of Manzanillo': 6272914.5326,\n",
       " 'Port of Rotterdam': 2745849.666,\n",
       " 'Port of Lagos': 243946.674,\n",
       " 'Port of Salalah': 665974.42,\n",
       " 'Port of Gdansk': 4350000.5481,\n",
       " 'Port of Doha': 1775931.7866,\n",
       " 'Port of King Abdul Aziz': 9520988.2609,\n",
       " 'Port of Jeddah': 5352440.4517,\n",
       " 'Port of Singapore': 20157761.1392,\n",
       " 'Port of Durban': 1219733.3699,\n",
       " 'Port of Algeciras': 5144723.8347,\n",
       " 'Port of Bangkok': 19037885.5204,\n",
       " 'Port of Jebel Ali': 3995846.5198,\n",
       " 'Port of Immingham': 5051019.5284,\n",
       " 'Port of New York': 27723150.5426,\n",
       " 'Port of Los Angeles': 19323708.4517,\n",
       " 'Port of Saigon': 5599378.0942}"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "plastic_supply"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Set Problem Variables\n",
    "prob = LpProblem(\"Transportation\", LpMinimize)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "None\n",
       "VARIABLES"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Set Problem Variables\n",
    "routes = [(i,j) for i in supply_points for j in demand_points]\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('Port of Buenos Aires', 'Port of Salalah'),\n",
       " ('Port of Buenos Aires', 'Port of Gaza'),\n",
       " ('Port of Buenos Aires', 'Port of Jebel Ali'),\n",
       " ('Port of Antwerp', 'Port of Salalah'),\n",
       " ('Port of Antwerp', 'Port of Gaza'),\n",
       " ('Port of Antwerp', 'Port of Jebel Ali'),\n",
       " ('Port of Santos', 'Port of Salalah'),\n",
       " ('Port of Santos', 'Port of Gaza'),\n",
       " ('Port of Santos', 'Port of Jebel Ali'),\n",
       " ('Port of Montreal', 'Port of Salalah'),\n",
       " ('Port of Montreal', 'Port of Gaza'),\n",
       " ('Port of Montreal', 'Port of Jebel Ali'),\n",
       " ('Port of Vancouver', 'Port of Salalah'),\n",
       " ('Port of Vancouver', 'Port of Gaza'),\n",
       " ('Port of Vancouver', 'Port of Jebel Ali'),\n",
       " ('Port of Shanghai', 'Port of Salalah'),\n",
       " ('Port of Shanghai', 'Port of Gaza'),\n",
       " ('Port of Shanghai', 'Port of Jebel Ali'),\n",
       " ('Buenaventura', 'Port of Salalah'),\n",
       " ('Buenaventura', 'Port of Gaza'),\n",
       " ('Buenaventura', 'Port of Jebel Ali'),\n",
       " ('Port of Alexandria', 'Port of Salalah'),\n",
       " ('Port of Alexandria', 'Port of Gaza'),\n",
       " ('Port of Alexandria', 'Port of Jebel Ali'),\n",
       " ('Port of Marseille', 'Port of Salalah'),\n",
       " ('Port of Marseille', 'Port of Gaza'),\n",
       " ('Port of Marseille', 'Port of Jebel Ali'),\n",
       " ('Port of Hamburg_Germany', 'Port of Salalah'),\n",
       " ('Port of Hamburg_Germany', 'Port of Gaza'),\n",
       " ('Port of Hamburg_Germany', 'Port of Jebel Ali'),\n",
       " ('Port of Jawaharlal Nehru', 'Port of Salalah'),\n",
       " ('Port of Jawaharlal Nehru', 'Port of Gaza'),\n",
       " ('Port of Jawaharlal Nehru', 'Port of Jebel Ali'),\n",
       " ('Port of Gioia Tauro', 'Port of Salalah'),\n",
       " ('Port of Gioia Tauro', 'Port of Gaza'),\n",
       " ('Port of Gioia Tauro', 'Port of Jebel Ali'),\n",
       " ('Port of Nagoya', 'Port of Salalah'),\n",
       " ('Port of Nagoya', 'Port of Gaza'),\n",
       " ('Port of Nagoya', 'Port of Jebel Ali'),\n",
       " ('Port of Busan', 'Port of Salalah'),\n",
       " ('Port of Busan', 'Port of Gaza'),\n",
       " ('Port of Busan', 'Port of Jebel Ali'),\n",
       " ('Port of Shuwaikh', 'Port of Salalah'),\n",
       " ('Port of Shuwaikh', 'Port of Gaza'),\n",
       " ('Port of Shuwaikh', 'Port of Jebel Ali'),\n",
       " ('Penang Port', 'Port of Salalah'),\n",
       " ('Penang Port', 'Port of Gaza'),\n",
       " ('Penang Port', 'Port of Jebel Ali'),\n",
       " ('Port of Manzanillo', 'Port of Salalah'),\n",
       " ('Port of Manzanillo', 'Port of Gaza'),\n",
       " ('Port of Manzanillo', 'Port of Jebel Ali'),\n",
       " ('Port of Rotterdam', 'Port of Salalah'),\n",
       " ('Port of Rotterdam', 'Port of Gaza'),\n",
       " ('Port of Rotterdam', 'Port of Jebel Ali'),\n",
       " ('Port of Lagos', 'Port of Salalah'),\n",
       " ('Port of Lagos', 'Port of Gaza'),\n",
       " ('Port of Lagos', 'Port of Jebel Ali'),\n",
       " ('Port of Salalah', 'Port of Salalah'),\n",
       " ('Port of Salalah', 'Port of Gaza'),\n",
       " ('Port of Salalah', 'Port of Jebel Ali'),\n",
       " ('Port of Gdansk', 'Port of Salalah'),\n",
       " ('Port of Gdansk', 'Port of Gaza'),\n",
       " ('Port of Gdansk', 'Port of Jebel Ali'),\n",
       " ('Port of Doha', 'Port of Salalah'),\n",
       " ('Port of Doha', 'Port of Gaza'),\n",
       " ('Port of Doha', 'Port of Jebel Ali'),\n",
       " ('Port of King Abdul Aziz', 'Port of Salalah'),\n",
       " ('Port of King Abdul Aziz', 'Port of Gaza'),\n",
       " ('Port of King Abdul Aziz', 'Port of Jebel Ali'),\n",
       " ('Port of Jeddah', 'Port of Salalah'),\n",
       " ('Port of Jeddah', 'Port of Gaza'),\n",
       " ('Port of Jeddah', 'Port of Jebel Ali'),\n",
       " ('Port of Singapore', 'Port of Salalah'),\n",
       " ('Port of Singapore', 'Port of Gaza'),\n",
       " ('Port of Singapore', 'Port of Jebel Ali'),\n",
       " ('Port of Durban', 'Port of Salalah'),\n",
       " ('Port of Durban', 'Port of Gaza'),\n",
       " ('Port of Durban', 'Port of Jebel Ali'),\n",
       " ('Port of Algeciras', 'Port of Salalah'),\n",
       " ('Port of Algeciras', 'Port of Gaza'),\n",
       " ('Port of Algeciras', 'Port of Jebel Ali'),\n",
       " ('Port of Bangkok', 'Port of Salalah'),\n",
       " ('Port of Bangkok', 'Port of Gaza'),\n",
       " ('Port of Bangkok', 'Port of Jebel Ali'),\n",
       " ('Port of Jebel Ali', 'Port of Salalah'),\n",
       " ('Port of Jebel Ali', 'Port of Gaza'),\n",
       " ('Port of Jebel Ali', 'Port of Jebel Ali'),\n",
       " ('Port of Immingham', 'Port of Salalah'),\n",
       " ('Port of Immingham', 'Port of Gaza'),\n",
       " ('Port of Immingham', 'Port of Jebel Ali'),\n",
       " ('Port of New York', 'Port of Salalah'),\n",
       " ('Port of New York', 'Port of Gaza'),\n",
       " ('Port of New York', 'Port of Jebel Ali'),\n",
       " ('Port of Los Angeles', 'Port of Salalah'),\n",
       " ('Port of Los Angeles', 'Port of Gaza'),\n",
       " ('Port of Los Angeles', 'Port of Jebel Ali'),\n",
       " ('Port of Saigon', 'Port of Salalah'),\n",
       " ('Port of Saigon', 'Port of Gaza'),\n",
       " ('Port of Saigon', 'Port of Jebel Ali')]"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "routes"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Decision Variables\n",
    "X = LpVariable.dicts(\"ShipmentAmount\",(supply_points, demand_points),0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Buenos Aires': {'Port of Salalah': ShipmentAmount_Port_of_Buenos_Aires_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Buenos_Aires_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali},\n",
       " 'Port of Antwerp': {'Port of Salalah': ShipmentAmount_Port_of_Antwerp_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Antwerp_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali},\n",
       " 'Port of Santos': {'Port of Salalah': ShipmentAmount_Port_of_Santos_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Santos_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali},\n",
       " 'Port of Montreal': {'Port of Salalah': ShipmentAmount_Port_of_Montreal_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Montreal_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali},\n",
       " 'Port of Vancouver': {'Port of Salalah': ShipmentAmount_Port_of_Vancouver_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Vancouver_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali},\n",
       " 'Port of Shanghai': {'Port of Salalah': ShipmentAmount_Port_of_Shanghai_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Shanghai_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali},\n",
       " 'Buenaventura': {'Port of Salalah': ShipmentAmount_Buenaventura_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Buenaventura_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Buenaventura_Port_of_Jebel_Ali},\n",
       " 'Port of Alexandria': {'Port of Salalah': ShipmentAmount_Port_of_Alexandria_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Alexandria_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali},\n",
       " 'Port of Marseille': {'Port of Salalah': ShipmentAmount_Port_of_Marseille_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Marseille_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali},\n",
       " 'Port of Hamburg_Germany': {'Port of Salalah': ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali},\n",
       " 'Port of Jawaharlal Nehru': {'Port of Salalah': ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali},\n",
       " 'Port of Gioia Tauro': {'Port of Salalah': ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali},\n",
       " 'Port of Nagoya': {'Port of Salalah': ShipmentAmount_Port_of_Nagoya_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Nagoya_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali},\n",
       " 'Port of Busan': {'Port of Salalah': ShipmentAmount_Port_of_Busan_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Busan_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali},\n",
       " 'Port of Shuwaikh': {'Port of Salalah': ShipmentAmount_Port_of_Shuwaikh_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Shuwaikh_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Shuwaikh_Port_of_Jebel_Ali},\n",
       " 'Penang Port': {'Port of Salalah': ShipmentAmount_Penang_Port_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Penang_Port_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Penang_Port_Port_of_Jebel_Ali},\n",
       " 'Port of Manzanillo': {'Port of Salalah': ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali},\n",
       " 'Port of Rotterdam': {'Port of Salalah': ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali},\n",
       " 'Port of Lagos': {'Port of Salalah': ShipmentAmount_Port_of_Lagos_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Lagos_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali},\n",
       " 'Port of Salalah': {'Port of Salalah': ShipmentAmount_Port_of_Salalah_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Salalah_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali},\n",
       " 'Port of Gdansk': {'Port of Salalah': ShipmentAmount_Port_of_Gdansk_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Gdansk_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali},\n",
       " 'Port of Doha': {'Port of Salalah': ShipmentAmount_Port_of_Doha_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Doha_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali},\n",
       " 'Port of King Abdul Aziz': {'Port of Salalah': ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Jebel_Ali},\n",
       " 'Port of Jeddah': {'Port of Salalah': ShipmentAmount_Port_of_Jeddah_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Jeddah_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Jeddah_Port_of_Jebel_Ali},\n",
       " 'Port of Singapore': {'Port of Salalah': ShipmentAmount_Port_of_Singapore_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Singapore_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Singapore_Port_of_Jebel_Ali},\n",
       " 'Port of Durban': {'Port of Salalah': ShipmentAmount_Port_of_Durban_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Durban_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali},\n",
       " 'Port of Algeciras': {'Port of Salalah': ShipmentAmount_Port_of_Algeciras_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Algeciras_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali},\n",
       " 'Port of Bangkok': {'Port of Salalah': ShipmentAmount_Port_of_Bangkok_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Bangkok_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali},\n",
       " 'Port of Jebel Ali': {'Port of Salalah': ShipmentAmount_Port_of_Jebel_Ali_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Jebel_Ali_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Jebel_Ali_Port_of_Jebel_Ali},\n",
       " 'Port of Immingham': {'Port of Salalah': ShipmentAmount_Port_of_Immingham_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Immingham_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali},\n",
       " 'Port of New York': {'Port of Salalah': ShipmentAmount_Port_of_New_York_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_New_York_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali},\n",
       " 'Port of Los Angeles': {'Port of Salalah': ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali},\n",
       " 'Port of Saigon': {'Port of Salalah': ShipmentAmount_Port_of_Saigon_Port_of_Salalah,\n",
       "  'Port of Gaza': ShipmentAmount_Port_of_Saigon_Port_of_Gaza,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali}}"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "X"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Objective Function\n",
    "prob += sum(X[i][j]*distance[i][j] for (i,j) in routes)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "6743*ShipmentAmount_Buenaventura_Port_of_Gaza + 11307*ShipmentAmount_Buenaventura_Port_of_Jebel_Ali + 10308*ShipmentAmount_Buenaventura_Port_of_Salalah + 5210*ShipmentAmount_Penang_Port_Port_of_Gaza + 3601*ShipmentAmount_Penang_Port_Port_of_Jebel_Ali + 3245*ShipmentAmount_Penang_Port_Port_of_Salalah + 242*ShipmentAmount_Port_of_Alexandria_Port_of_Gaza + 3396*ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali + 2397*ShipmentAmount_Port_of_Alexandria_Port_of_Salalah + 2004*ShipmentAmount_Port_of_Algeciras_Port_of_Gaza + 5377*ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali + 4378*ShipmentAmount_Port_of_Algeciras_Port_of_Salalah + 3327.94*ShipmentAmount_Port_of_Antwerp_Port_of_Gaza + 6938*ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali + 5939*ShipmentAmount_Port_of_Antwerp_Port_of_Salalah + 6341*ShipmentAmount_Port_of_Bangkok_Port_of_Gaza + 4847*ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali + 4490*ShipmentAmount_Port_of_Bangkok_Port_of_Salalah + 7282*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Gaza + 9168*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali + 8169*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Salalah + 8020*ShipmentAmount_Port_of_Busan_Port_of_Gaza + 7143*ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali + 6786*ShipmentAmount_Port_of_Busan_Port_of_Salalah + 3139*ShipmentAmount_Port_of_Doha_Port_of_Gaza + 187*ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali + 1186*ShipmentAmount_Port_of_Doha_Port_of_Salalah + 7346*ShipmentAmount_Port_of_Durban_Port_of_Gaza + 4572*ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali + 3571*ShipmentAmount_Port_of_Durban_Port_of_Salalah + 4119*ShipmentAmount_Port_of_Gdansk_Port_of_Gaza + 8025*ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali + 7025*ShipmentAmount_Port_of_Gdansk_Port_of_Salalah + 1336*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza + 4366*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali + 3367*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah + 3595.7*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza + 7306*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali + 6307*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah + 3399*ShipmentAmount_Port_of_Immingham_Port_of_Gaza + 7080*ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali + 6081*ShipmentAmount_Port_of_Immingham_Port_of_Salalah + 3243*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza + 1335*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali + 1143*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah + 2975*ShipmentAmount_Port_of_Jebel_Ali_Port_of_Gaza + 999*ShipmentAmount_Port_of_Jebel_Ali_Port_of_Salalah + 828*ShipmentAmount_Port_of_Jeddah_Port_of_Gaza + 2371*ShipmentAmount_Port_of_Jeddah_Port_of_Jebel_Ali + 1372*ShipmentAmount_Port_of_Jeddah_Port_of_Salalah + 3203*ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Gaza + 389*ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Jebel_Ali + 1307*ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Salalah + 5500*ShipmentAmount_Port_of_Lagos_Port_of_Gaza + 8316*ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali + 7317*ShipmentAmount_Port_of_Lagos_Port_of_Salalah + 9280*ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza + 11116*ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali + 11137*ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah + 8088*ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza + 12790*ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali + 11791*ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah + 1631*ShipmentAmount_Port_of_Marseille_Port_of_Gaza + 5080*ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali + 4081*ShipmentAmount_Port_of_Marseille_Port_of_Salalah + 5165*ShipmentAmount_Port_of_Montreal_Port_of_Gaza + 9470*ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali + 8471*ShipmentAmount_Port_of_Montreal_Port_of_Salalah + 8308*ShipmentAmount_Port_of_Nagoya_Port_of_Gaza + 7505*ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali + 7148*ShipmentAmount_Port_of_Nagoya_Port_of_Salalah + 5196*ShipmentAmount_Port_of_New_York_Port_of_Gaza + 8918*ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali + 7930*ShipmentAmount_Port_of_New_York_Port_of_Salalah + 3335*ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza + 7029*ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali + 6030*ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah + 6368*ShipmentAmount_Port_of_Saigon_Port_of_Gaza + 4709*ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali + 4353*ShipmentAmount_Port_of_Saigon_Port_of_Salalah + 2086*ShipmentAmount_Port_of_Salalah_Port_of_Gaza + 999*ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali + 6360*ShipmentAmount_Port_of_Santos_Port_of_Gaza + 9407*ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali + 8408*ShipmentAmount_Port_of_Santos_Port_of_Salalah + 7660*ShipmentAmount_Port_of_Shanghai_Port_of_Gaza + 6627*ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali + 6270*ShipmentAmount_Port_of_Shanghai_Port_of_Salalah + 3363*ShipmentAmount_Port_of_Shuwaikh_Port_of_Gaza + 562*ShipmentAmount_Port_of_Shuwaikh_Port_of_Jebel_Ali + 1480*ShipmentAmount_Port_of_Shuwaikh_Port_of_Salalah + 5531*ShipmentAmount_Port_of_Singapore_Port_of_Gaza + 3971*ShipmentAmount_Port_of_Singapore_Port_of_Jebel_Ali + 3614*ShipmentAmount_Port_of_Singapore_Port_of_Salalah + 10365*ShipmentAmount_Port_of_Vancouver_Port_of_Gaza + 10440*ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali + 10461*ShipmentAmount_Port_of_Vancouver_Port_of_Salalah + 0.0\n",
       "VARIABLES\n",
       "ShipmentAmount_Buenaventura_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Buenaventura_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Buenaventura_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Jeddah_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Jeddah_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jeddah_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Shuwaikh_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Shuwaikh_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Shuwaikh_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Singapore_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Singapore_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Singapore_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Salalah Continuous"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "6743*ShipmentAmount_Buenaventura_Port_of_Gaza + 11307*ShipmentAmount_Buenaventura_Port_of_Jebel_Ali + 10308*ShipmentAmount_Buenaventura_Port_of_Salalah + 5210*ShipmentAmount_Penang_Port_Port_of_Gaza + 3601*ShipmentAmount_Penang_Port_Port_of_Jebel_Ali + 3245*ShipmentAmount_Penang_Port_Port_of_Salalah + 242*ShipmentAmount_Port_of_Alexandria_Port_of_Gaza + 3396*ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali + 2397*ShipmentAmount_Port_of_Alexandria_Port_of_Salalah + 2004*ShipmentAmount_Port_of_Algeciras_Port_of_Gaza + 5377*ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali + 4378*ShipmentAmount_Port_of_Algeciras_Port_of_Salalah + 3327.94*ShipmentAmount_Port_of_Antwerp_Port_of_Gaza + 6938*ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali + 5939*ShipmentAmount_Port_of_Antwerp_Port_of_Salalah + 6341*ShipmentAmount_Port_of_Bangkok_Port_of_Gaza + 4847*ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali + 4490*ShipmentAmount_Port_of_Bangkok_Port_of_Salalah + 7282*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Gaza + 9168*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali + 8169*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Salalah + 8020*ShipmentAmount_Port_of_Busan_Port_of_Gaza + 7143*ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali + 6786*ShipmentAmount_Port_of_Busan_Port_of_Salalah + 3139*ShipmentAmount_Port_of_Doha_Port_of_Gaza + 187*ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali + 1186*ShipmentAmount_Port_of_Doha_Port_of_Salalah + 7346*ShipmentAmount_Port_of_Durban_Port_of_Gaza + 4572*ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali + 3571*ShipmentAmount_Port_of_Durban_Port_of_Salalah + 4119*ShipmentAmount_Port_of_Gdansk_Port_of_Gaza + 8025*ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali + 7025*ShipmentAmount_Port_of_Gdansk_Port_of_Salalah + 1336*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza + 4366*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali + 3367*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah + 3595.7*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza + 7306*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali + 6307*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah + 3399*ShipmentAmount_Port_of_Immingham_Port_of_Gaza + 7080*ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali + 6081*ShipmentAmount_Port_of_Immingham_Port_of_Salalah + 3243*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza + 1335*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali + 1143*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah + 2975*ShipmentAmount_Port_of_Jebel_Ali_Port_of_Gaza + 999*ShipmentAmount_Port_of_Jebel_Ali_Port_of_Salalah + 828*ShipmentAmount_Port_of_Jeddah_Port_of_Gaza + 2371*ShipmentAmount_Port_of_Jeddah_Port_of_Jebel_Ali + 1372*ShipmentAmount_Port_of_Jeddah_Port_of_Salalah + 3203*ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Gaza + 389*ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Jebel_Ali + 1307*ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Salalah + 5500*ShipmentAmount_Port_of_Lagos_Port_of_Gaza + 8316*ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali + 7317*ShipmentAmount_Port_of_Lagos_Port_of_Salalah + 9280*ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza + 11116*ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali + 11137*ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah + 8088*ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza + 12790*ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali + 11791*ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah + 1631*ShipmentAmount_Port_of_Marseille_Port_of_Gaza + 5080*ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali + 4081*ShipmentAmount_Port_of_Marseille_Port_of_Salalah + 5165*ShipmentAmount_Port_of_Montreal_Port_of_Gaza + 9470*ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali + 8471*ShipmentAmount_Port_of_Montreal_Port_of_Salalah + 8308*ShipmentAmount_Port_of_Nagoya_Port_of_Gaza + 7505*ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali + 7148*ShipmentAmount_Port_of_Nagoya_Port_of_Salalah + 5196*ShipmentAmount_Port_of_New_York_Port_of_Gaza + 8918*ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali + 7930*ShipmentAmount_Port_of_New_York_Port_of_Salalah + 3335*ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza + 7029*ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali + 6030*ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah + 6368*ShipmentAmount_Port_of_Saigon_Port_of_Gaza + 4709*ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali + 4353*ShipmentAmount_Port_of_Saigon_Port_of_Salalah + 2086*ShipmentAmount_Port_of_Salalah_Port_of_Gaza + 999*ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali + 6360*ShipmentAmount_Port_of_Santos_Port_of_Gaza + 9407*ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali + 8408*ShipmentAmount_Port_of_Santos_Port_of_Salalah + 7660*ShipmentAmount_Port_of_Shanghai_Port_of_Gaza + 6627*ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali + 6270*ShipmentAmount_Port_of_Shanghai_Port_of_Salalah + 3363*ShipmentAmount_Port_of_Shuwaikh_Port_of_Gaza + 562*ShipmentAmount_Port_of_Shuwaikh_Port_of_Jebel_Ali + 1480*ShipmentAmount_Port_of_Shuwaikh_Port_of_Salalah + 5531*ShipmentAmount_Port_of_Singapore_Port_of_Gaza + 3971*ShipmentAmount_Port_of_Singapore_Port_of_Jebel_Ali + 3614*ShipmentAmount_Port_of_Singapore_Port_of_Salalah + 10365*ShipmentAmount_Port_of_Vancouver_Port_of_Gaza + 10440*ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali + 10461*ShipmentAmount_Port_of_Vancouver_Port_of_Salalah + 0.0\n",
       "SUBJECT TO\n",
       "_C1: ShipmentAmount_Buenaventura_Port_of_Salalah\n",
       " + ShipmentAmount_Penang_Port_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Jeddah_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Shuwaikh_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Singapore_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Salalah >= 172514595.4\n",
       "\n",
       "_C2: ShipmentAmount_Buenaventura_Port_of_Gaza\n",
       " + ShipmentAmount_Penang_Port_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Jeddah_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Shuwaikh_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Singapore_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Gaza >= 158334914.1\n",
       "\n",
       "_C3: ShipmentAmount_Buenaventura_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Penang_Port_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jeddah_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Shuwaikh_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Singapore_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali >= 183385353\n",
       "\n",
       "VARIABLES\n",
       "ShipmentAmount_Buenaventura_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Buenaventura_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Buenaventura_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Jeddah_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Jeddah_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jeddah_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Shuwaikh_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Shuwaikh_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Shuwaikh_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Singapore_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Singapore_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Singapore_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Salalah Continuous"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Constraints\n",
    "for j in demand_points:\n",
    "    prob += sum(X[i][j] for i in supply_points) >= plastic_demand[j]\n",
    "    \n",
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "6743*ShipmentAmount_Buenaventura_Port_of_Gaza + 11307*ShipmentAmount_Buenaventura_Port_of_Jebel_Ali + 10308*ShipmentAmount_Buenaventura_Port_of_Salalah + 5210*ShipmentAmount_Penang_Port_Port_of_Gaza + 3601*ShipmentAmount_Penang_Port_Port_of_Jebel_Ali + 3245*ShipmentAmount_Penang_Port_Port_of_Salalah + 242*ShipmentAmount_Port_of_Alexandria_Port_of_Gaza + 3396*ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali + 2397*ShipmentAmount_Port_of_Alexandria_Port_of_Salalah + 2004*ShipmentAmount_Port_of_Algeciras_Port_of_Gaza + 5377*ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali + 4378*ShipmentAmount_Port_of_Algeciras_Port_of_Salalah + 3327.94*ShipmentAmount_Port_of_Antwerp_Port_of_Gaza + 6938*ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali + 5939*ShipmentAmount_Port_of_Antwerp_Port_of_Salalah + 6341*ShipmentAmount_Port_of_Bangkok_Port_of_Gaza + 4847*ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali + 4490*ShipmentAmount_Port_of_Bangkok_Port_of_Salalah + 7282*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Gaza + 9168*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali + 8169*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Salalah + 8020*ShipmentAmount_Port_of_Busan_Port_of_Gaza + 7143*ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali + 6786*ShipmentAmount_Port_of_Busan_Port_of_Salalah + 3139*ShipmentAmount_Port_of_Doha_Port_of_Gaza + 187*ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali + 1186*ShipmentAmount_Port_of_Doha_Port_of_Salalah + 7346*ShipmentAmount_Port_of_Durban_Port_of_Gaza + 4572*ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali + 3571*ShipmentAmount_Port_of_Durban_Port_of_Salalah + 4119*ShipmentAmount_Port_of_Gdansk_Port_of_Gaza + 8025*ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali + 7025*ShipmentAmount_Port_of_Gdansk_Port_of_Salalah + 1336*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza + 4366*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali + 3367*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah + 3595.7*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza + 7306*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali + 6307*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah + 3399*ShipmentAmount_Port_of_Immingham_Port_of_Gaza + 7080*ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali + 6081*ShipmentAmount_Port_of_Immingham_Port_of_Salalah + 3243*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza + 1335*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali + 1143*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah + 2975*ShipmentAmount_Port_of_Jebel_Ali_Port_of_Gaza + 999*ShipmentAmount_Port_of_Jebel_Ali_Port_of_Salalah + 828*ShipmentAmount_Port_of_Jeddah_Port_of_Gaza + 2371*ShipmentAmount_Port_of_Jeddah_Port_of_Jebel_Ali + 1372*ShipmentAmount_Port_of_Jeddah_Port_of_Salalah + 3203*ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Gaza + 389*ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Jebel_Ali + 1307*ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Salalah + 5500*ShipmentAmount_Port_of_Lagos_Port_of_Gaza + 8316*ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali + 7317*ShipmentAmount_Port_of_Lagos_Port_of_Salalah + 9280*ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza + 11116*ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali + 11137*ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah + 8088*ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza + 12790*ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali + 11791*ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah + 1631*ShipmentAmount_Port_of_Marseille_Port_of_Gaza + 5080*ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali + 4081*ShipmentAmount_Port_of_Marseille_Port_of_Salalah + 5165*ShipmentAmount_Port_of_Montreal_Port_of_Gaza + 9470*ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali + 8471*ShipmentAmount_Port_of_Montreal_Port_of_Salalah + 8308*ShipmentAmount_Port_of_Nagoya_Port_of_Gaza + 7505*ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali + 7148*ShipmentAmount_Port_of_Nagoya_Port_of_Salalah + 5196*ShipmentAmount_Port_of_New_York_Port_of_Gaza + 8918*ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali + 7930*ShipmentAmount_Port_of_New_York_Port_of_Salalah + 3335*ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza + 7029*ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali + 6030*ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah + 6368*ShipmentAmount_Port_of_Saigon_Port_of_Gaza + 4709*ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali + 4353*ShipmentAmount_Port_of_Saigon_Port_of_Salalah + 2086*ShipmentAmount_Port_of_Salalah_Port_of_Gaza + 999*ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali + 6360*ShipmentAmount_Port_of_Santos_Port_of_Gaza + 9407*ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali + 8408*ShipmentAmount_Port_of_Santos_Port_of_Salalah + 7660*ShipmentAmount_Port_of_Shanghai_Port_of_Gaza + 6627*ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali + 6270*ShipmentAmount_Port_of_Shanghai_Port_of_Salalah + 3363*ShipmentAmount_Port_of_Shuwaikh_Port_of_Gaza + 562*ShipmentAmount_Port_of_Shuwaikh_Port_of_Jebel_Ali + 1480*ShipmentAmount_Port_of_Shuwaikh_Port_of_Salalah + 5531*ShipmentAmount_Port_of_Singapore_Port_of_Gaza + 3971*ShipmentAmount_Port_of_Singapore_Port_of_Jebel_Ali + 3614*ShipmentAmount_Port_of_Singapore_Port_of_Salalah + 10365*ShipmentAmount_Port_of_Vancouver_Port_of_Gaza + 10440*ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali + 10461*ShipmentAmount_Port_of_Vancouver_Port_of_Salalah + 0.0\n",
       "SUBJECT TO\n",
       "_C1: ShipmentAmount_Buenaventura_Port_of_Salalah\n",
       " + ShipmentAmount_Penang_Port_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Jeddah_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Shuwaikh_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Singapore_Port_of_Salalah\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Salalah >= 172514595.4\n",
       "\n",
       "_C2: ShipmentAmount_Buenaventura_Port_of_Gaza\n",
       " + ShipmentAmount_Penang_Port_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Jeddah_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Shuwaikh_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Singapore_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Gaza >= 158334914.1\n",
       "\n",
       "_C3: ShipmentAmount_Buenaventura_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Penang_Port_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jeddah_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Shuwaikh_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Singapore_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali >= 183385353\n",
       "\n",
       "_C4: ShipmentAmount_Port_of_Buenos_Aires_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Salalah = 3484953.6435\n",
       "\n",
       "_C5: ShipmentAmount_Port_of_Antwerp_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Antwerp_Port_of_Salalah = 3021067.502\n",
       "\n",
       "_C6: ShipmentAmount_Port_of_Santos_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Salalah = 7945692.0017\n",
       "\n",
       "_C7: ShipmentAmount_Port_of_Montreal_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Salalah = 1637839.3004\n",
       "\n",
       "_C8: ShipmentAmount_Port_of_Vancouver_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Salalah = 7771532.4984\n",
       "\n",
       "_C9: ShipmentAmount_Port_of_Shanghai_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Salalah = 234997919.661\n",
       "\n",
       "_C10: ShipmentAmount_Buenaventura_Port_of_Gaza\n",
       " + ShipmentAmount_Buenaventura_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Buenaventura_Port_of_Salalah = 2509165.8953\n",
       "\n",
       "_C11: ShipmentAmount_Port_of_Alexandria_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Salalah = 731840.0219\n",
       "\n",
       "_C12: ShipmentAmount_Port_of_Marseille_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Salalah = 6474235.9733\n",
       "\n",
       "_C13: ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah = 16669297.2185\n",
       "\n",
       "_C14: ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah = 10078880.5696\n",
       "\n",
       "_C15: ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah = 9565903.5174\n",
       "\n",
       "_C16: ShipmentAmount_Port_of_Nagoya_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Salalah = 13163659.9622\n",
       "\n",
       "_C17: ShipmentAmount_Port_of_Busan_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Busan_Port_of_Salalah = 44795024.7538\n",
       "\n",
       "_C18: ShipmentAmount_Port_of_Shuwaikh_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Shuwaikh_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Shuwaikh_Port_of_Salalah = 887965.8933\n",
       "\n",
       "_C19: ShipmentAmount_Penang_Port_Port_of_Gaza\n",
       " + ShipmentAmount_Penang_Port_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Penang_Port_Port_of_Salalah = 12318631.8073\n",
       "\n",
       "_C20: ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah = 6272914.5326\n",
       "\n",
       "_C21: ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah = 2745849.666\n",
       "\n",
       "_C22: ShipmentAmount_Port_of_Lagos_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Salalah = 243946.674\n",
       "\n",
       "_C23: ShipmentAmount_Port_of_Salalah_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Salalah = 665974.42\n",
       "\n",
       "_C24: ShipmentAmount_Port_of_Gdansk_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Salalah = 4350000.5481\n",
       "\n",
       "_C25: ShipmentAmount_Port_of_Doha_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Salalah = 1775931.7866\n",
       "\n",
       "_C26: ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Salalah = 9520988.2609\n",
       "\n",
       "_C27: ShipmentAmount_Port_of_Jeddah_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Jeddah_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jeddah_Port_of_Salalah = 5352440.4517\n",
       "\n",
       "_C28: ShipmentAmount_Port_of_Singapore_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Singapore_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Singapore_Port_of_Salalah = 20157761.1392\n",
       "\n",
       "_C29: ShipmentAmount_Port_of_Durban_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Salalah = 1219733.3699\n",
       "\n",
       "_C30: ShipmentAmount_Port_of_Algeciras_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Salalah = 5144723.8347\n",
       "\n",
       "_C31: ShipmentAmount_Port_of_Bangkok_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Bangkok_Port_of_Salalah = 19037885.5204\n",
       "\n",
       "_C32: ShipmentAmount_Port_of_Jebel_Ali_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Salalah = 3995846.5198\n",
       "\n",
       "_C33: ShipmentAmount_Port_of_Immingham_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Salalah = 5051019.5284\n",
       "\n",
       "_C34: ShipmentAmount_Port_of_New_York_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Salalah = 27723150.5426\n",
       "\n",
       "_C35: ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah = 19323708.4517\n",
       "\n",
       "_C36: ShipmentAmount_Port_of_Saigon_Port_of_Gaza\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Saigon_Port_of_Salalah = 5599378.0942\n",
       "\n",
       "VARIABLES\n",
       "ShipmentAmount_Buenaventura_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Buenaventura_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Buenaventura_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Antwerp_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Bangkok_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Busan_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Jeddah_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Jeddah_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jeddah_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Saigon_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Shuwaikh_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Shuwaikh_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Shuwaikh_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Singapore_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Singapore_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Singapore_Port_of_Salalah Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Gaza Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Salalah Continuous"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Constraints\n",
    "for i in supply_points:\n",
    "    prob += sum(X[i][j] for j in demand_points) == plastic_supply[i]\n",
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Status: Optimal\n",
      "ShipmentAmount_Buenaventura_Port_of_Gaza = 2509165.9\n",
      "ShipmentAmount_Penang_Port_Port_of_Jebel_Ali = 12318632.0\n",
      "ShipmentAmount_Port_of_Alexandria_Port_of_Gaza = 731840.02\n",
      "ShipmentAmount_Port_of_Algeciras_Port_of_Gaza = 5144723.8\n",
      "ShipmentAmount_Port_of_Antwerp_Port_of_Gaza = 3021067.5\n",
      "ShipmentAmount_Port_of_Bangkok_Port_of_Jebel_Ali = 19037886.0\n",
      "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Gaza = 3484953.6\n",
      "ShipmentAmount_Port_of_Busan_Port_of_Gaza = 9151972.3\n",
      "ShipmentAmount_Port_of_Busan_Port_of_Jebel_Ali = 35643052.0\n",
      "ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali = 1775931.8\n",
      "ShipmentAmount_Port_of_Durban_Port_of_Salalah = 1219733.4\n",
      "ShipmentAmount_Port_of_Gdansk_Port_of_Gaza = 4350000.5\n",
      "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Gaza = 9565903.5\n",
      "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Gaza = 16669297.0\n",
      "ShipmentAmount_Port_of_Immingham_Port_of_Gaza = 5051019.5\n",
      "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali = 10078881.0\n",
      "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Jebel_Ali = 3995846.5\n",
      "ShipmentAmount_Port_of_Jeddah_Port_of_Gaza = 5352440.5\n",
      "ShipmentAmount_Port_of_King_Abdul_Aziz_Port_of_Jebel_Ali = 9520988.3\n",
      "ShipmentAmount_Port_of_Lagos_Port_of_Gaza = 243946.67\n",
      "ShipmentAmount_Port_of_Los_Angeles_Port_of_Gaza = 19323708.0\n",
      "ShipmentAmount_Port_of_Manzanillo_Port_of_Gaza = 6272914.5\n",
      "ShipmentAmount_Port_of_Marseille_Port_of_Gaza = 6474236.0\n",
      "ShipmentAmount_Port_of_Montreal_Port_of_Gaza = 1637839.3\n",
      "ShipmentAmount_Port_of_Nagoya_Port_of_Gaza = 13163660.0\n",
      "ShipmentAmount_Port_of_New_York_Port_of_Gaza = 27723151.0\n",
      "ShipmentAmount_Port_of_Rotterdam_Port_of_Gaza = 2745849.7\n",
      "ShipmentAmount_Port_of_Saigon_Port_of_Jebel_Ali = 5599378.1\n",
      "ShipmentAmount_Port_of_Salalah_Port_of_Salalah = 665974.42\n",
      "ShipmentAmount_Port_of_Santos_Port_of_Gaza = 7945692.0\n",
      "ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali = 64369031.0\n",
      "ShipmentAmount_Port_of_Shanghai_Port_of_Salalah = 170628890.0\n",
      "ShipmentAmount_Port_of_Shuwaikh_Port_of_Jebel_Ali = 887965.89\n",
      "ShipmentAmount_Port_of_Singapore_Port_of_Jebel_Ali = 20157761.0\n",
      "ShipmentAmount_Port_of_Vancouver_Port_of_Gaza = 7771532.5\n",
      "Total kilogram_miles = 2908960209046.0703\n"
     ]
    }
   ],
   "source": [
    "prob.solve()\n",
    "\n",
    "print(\"Status:\", LpStatus[prob.status])\n",
    "\n",
    "for v in prob.variables():\n",
    "    if v.varValue > 0:\n",
    "        print(v.name, \"=\", v.varValue)\n",
    "\n",
    "print(\"Total kilogram_miles =\", value(prob.objective))\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
